FROM openjdk:11-jre-slim

RUN useradd -u 1000 -m -s /bin/bash user
EXPOSE 8080

ARG VERSION=

COPY /target/neurons-$VERSION.jar /usr/share/neurons/neurons-$VERSION.jar
COPY /deploy/neurons.sh /usr/share/neurons/neurons

CMD ["/usr/share/neurons/neurons"]

